/**
 * 错误码定义
 */
package com.thermofisher.utils;

/**
 * @author bairuihua
 * 2019/11/25
 */

public enum ResultEnum
{

    CODE_0(-1, "失败"),
    CODE_00(0, "成功"),
    CODE_01(1, "已经存在"),
    CODE_02(2, "添加成功"),
    CODE_03(3, "添加失败"),
    CODE_04(4, "激活成功"),
    CODE_05(5, "激活失败"),
    CODE_06(6, "删除成功"),
    CODE_07(7, "删除失败"),
    CODE_08(8, "修改成功"),
    CODE_09(9, "修改失败"),
    CODE_501(501, "Modification failed! Please try again after a while."),
    CODE_502(502, "projectNo is blank ! Please confirm."),
    CODE_503(503, "Username or old password wrong! Please confirm."),
    CODE_504(504, "Modification failed! Please try again after a while."),
    CODE_201(201, "Change Password Success! Please use the new password at next logon."),
    CODE_200(200, "OK");

    private int code;

    private String msg;

    ResultEnum(int code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    public int getCode()
    {
        return code;
    }

    public void setCode(int code)
    {
        this.code = code;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }
}
